/*路由配置信息*/

import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    mode: 'hash',
    routes: [
        //默认路径下显示该路由
        {
            path: '/',
            name: '首页',
            component: (resolve) => require(['@/routes/home/Home.vue'], resolve)
        },
        {
            path: '/detail',
            name: '详情',
            component: (resolve) => require(['@/routes/detail/Detail.vue'], resolve)
        },
        {
            path: '/user',
            name: '我',
            component: (resolve) => require(['@/routes/user/User.vue'], resolve)
        },
        {
            path: '*',
            name: 'notfount',
            component: (resolve) => require(['components/NotFount.vue'], resolve)
        }
    ]
})